package com.example.devsa_platform.controller;

import com.example.devsa_platform.common.Result;
import com.example.devsa_platform.pojo.vo.stats.UsageAndCommunityStatsVo;
import com.example.devsa_platform.service.UsageAndCommunityService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/s4")
public class UsageAndCommunityController {

    @Resource
    private UsageAndCommunityService usageAndCommunityService;

    @GetMapping("/info")
    public Result<UsageAndCommunityStatsVo> UsageAndCommunityStats(){
        return usageAndCommunityService.UsageAndCommunityStats();
    }
}
